<?php
/**
* informationbrand.php
*
* Create on 2015-11-25
* Create by TT
*/
namespace haibao\cms\model\data;

Class InformationBrand extends Base{
	
	/**
	 * 1文章2图集
	 */
	const INFO_TYPE_ARTICLE = 1;
	const INFO_TYPE_PIC = 2;

	/**
	 * 是否为主标签0否1是
	 */
	const PRIMAIY_NOT = 0;
	const PRIMAIY_IS = 1;

	/**
	 * 文章或图集ID
	 */
	public $InfoId;

	/**
	 * 1文章2图集
	 */
	public $InfoType;
	
	/**
	 * 品牌对应标签ID
	 */
	public $BrandTagId;
	
	/**
	 * 是否主标签
	 */
	public $IsPrimaiy;
	
	/**
	 * 发布日期
	 */
	public $PublishTime;
	
	/**
	 * 生成日期
	 */
	public $CreateTime;
	
	public $ArticleInfo;
	public $ArticleImage;
	public $ImageUrl;
	public $ArticleTag;
	
	public $PicInfo;
	public $PicImage;
	public $PicTag;
	public $Url;
	public $Title;

	public function __construct(){
		parent::__construct();

		$this->intField('InfoId', 'InfoId',true);
		$this->intField('InfoType', 'InfoType',true);
		$this->intField('BrandTagId', 'BrandTagId',true);
		$this->intField('IsPrimaiy', 'IsPrimaiy',true);
		$this->dateField('PublishTime', 'PublishTime',true);
		$this->dateField('CreateTime', 'CreateTime');

		$this->setTableName('InformationBrand');
	}
}